package com.woniuxy.rms.dao;

import com.woniuxy.rms.pojo.GoodsCommentTag;
import org.apache.ibatis.annotations.Delete;

import java.util.List;

public interface GoodsCommentTagMapper {
    int deleteByPrimaryKey(Long id);

    int insert(GoodsCommentTag record);

    int insertSelective(GoodsCommentTag record);

    GoodsCommentTag selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(GoodsCommentTag record);

    int updateByPrimaryKey(GoodsCommentTag record);

    /**
     * Description : 根据评论id删除评论点赞  <br/>
     * ChangeLog : 1. 创建 (2020/3/26 0026 下午 11:55 [Administrator]);
     * @param id  这里只有根评论才有点赞
     * @return void
    */
    @Delete("delete from goods_comment_tags where goods_comment_id = #{value}")
    void deleteByCommentId(Long id);

    /**
     * Description : 根据评论id集合删除评论点赞  <br/>
     * ChangeLog : 1. 创建 (2020/3/27 0027 上午 10:07 [Administrator]);
     * @param commentIds
     * @return void
    */
    void deleteByCommentIds(List<Long> commentIds);
}